package com.zxl.controller;

import com.zxl.model.MetaColumn;
import com.zxl.service.MetaColumnService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/meta/column")
public class MetaColumnController {
    @Resource
    private MetaColumnService metaColumnService;

    @PutMapping
    public void update(@RequestBody MetaColumn metaColumn) {
        metaColumnService.update(metaColumn);
    }

    @DeleteMapping("/{id}")
    public void delete(@PathVariable Integer id) {
        metaColumnService.deleteById(id);
    }
}
